package com.fjnu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.fjnu.dao.impl.UnitDao;
import com.fjnu.entities.Unit;
import com.fjnu.service.IUnitService;
@Service("unitService")
@Transactional(propagation=Propagation.REQUIRED)
public class UnitService implements IUnitService {
	@Autowired
	private UnitDao unitDao;
	public List<Unit> findUnit() {
		
		return unitDao.findUnit();
	}
	
	public void delUnit(int id) {
		unitDao.delete(id);
		
	}
	

}
